import * as fs from 'fs';

export class SceneParser {
    parseScenes(filePath: string): string[] {
        const content = fs.readFileSync(filePath, 'utf-8');
        const sceneRegex = /class\s+(\w+)\s*\(\s*Scene\s*\)/g;
        const scenes: string[] = [];
        let match;
        while ((match = sceneRegex.exec(content)) !== null) {
            scenes.push(match[1]);
        }
        return scenes;
    }
}